package br.com.nextsql.renderizar;
public class TabelaModelo extends javax.swing.table.DefaultTableModel {
    public  TabelaModelo(){
        
    }
    public  TabelaModelo(Object coluna[]){
        if(coluna != null){
            for(Object c: coluna){
                addColumn(c);
            }
        }
    }
    public  TabelaModelo(Object linha[][], Object coluna[]){
        if(coluna != null){
            for(Object c: coluna){
                addColumn(c);
            }
        }
        if(linha != null){
            for(Object[] l: linha){
                addRow(l);
            }
        }
    }
    @Override
    public Class getColumnClass(int columnIndex){
        if(columnIndex==0){
            return getValueAt(0, columnIndex).getClass();
        }else{
            return super.getColumnClass(columnIndex);
        }
    }
    @Override
    public boolean isCellEditable(int row, int column) {
        return false;
    }
}
